package com.zhongli.devplatform.po.common;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.*;
import com.zhongli.devplatform.enums.FeedbackEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @author  WuXiCheng
 * @date  2020/7/23 10:12
 * @version 1.0
 */
@ApiModel(value="com-zhongli-devplatform-po-ReadFeedback")
@Data
@TableName(value = "read_feedback")
public class ReadFeedbackPO implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value="")
    private Integer id;

    /**
     * 反馈用户id
     */
    @TableField(value = "user_id")
    @ApiModelProperty(value="反馈用户id")
    private Integer userId;

    /**
     * 反馈内容
     */
    @TableField(value = "feed_content")
    @ApiModelProperty(value="反馈内容")
    private String feedContent;

    /**
     * 回复状态
     */
    @TableField(value = "status")
    @ApiModelProperty(value="回复状态")
    private FeedbackEnum status;

    @TableField(value = "create_time",fill = FieldFill.INSERT)
    @ApiModelProperty(value="")
    @JSONField(format = "yyyy-MM-dd HH:mm")
    private Date createTime;

    @TableField(value = "update_time",fill = FieldFill.UPDATE)
    @ApiModelProperty(value="")
    private Date updateTime;

    @TableField(value = "create_user_id",fill = FieldFill.INSERT)
    @ApiModelProperty(value="")
    private Integer createUserId;

    @TableField(value = "update_user_id",fill = FieldFill.UPDATE)
    @ApiModelProperty(value="")
    private Integer updateUserId;

    /**
     * 回复内容
     */
    @TableField(value = "reply_content")
    @ApiModelProperty(value="回复内容")
    private String replyContent;

    /**
     * 回复人id
     */
    @TableField(value = "reply_user_id")
    @ApiModelProperty(value="回复人id")
    private Integer replyUserId;

}
